<template>
  <div id="floatCart" @click="joinCart">
    <i class="icon ion-ios-cart"></i>
  </div>
</template>
<script>
    export default {
      name: "FloatCar",
      methods : {
        joinCart(){
          // $toast.show('已加入购物车');
          this.$router.push('/cart')
        },
      }
    }
</script>

<style scoped lang="less">
  //悬浮购物车
  #floatCart{
    background: seagreen;
    width: 50px;
    height: 50px;
    position: absolute;
    color: white;
    line-height: 50px;
    text-align: center;
    left: 15px;
    bottom: 100px;
    font-size: 30px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: rgba(0 , 0, 0, .5);
    /*z-index: 999;*/
  }
</style>
